package com.luoxue.execsql.rest.config;

import com.luoxue.execsql.rest.bean.request.IRequestExtension;
import com.luoxue.execsql.rest.bean.request.impl.IRequestExtensionDefault;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IRequestExtensionConfig {

    @ConditionalOnMissingBean(IRequestExtension.class)
    @Bean
    public IRequestExtension getIRequestExtension() {
        return new IRequestExtensionDefault();
    }
}
